package data.nanjing.expo.models.domain.trade;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 服务属性，只有叶子节点的服务类型才有服务属性
 *
 * @author ChanJi
 * @create 2018-06-07 19:28
 **/
public class ServiceAttr {
    private Integer id;
    /**
     * 叶子节点的服务类别的id
     */
    private Integer serviceId;

    /**
     * 属性名称
     */
    private String attributeName;

    /**
     * 属性值，多个值用分号隔开
     */
    private String attributeValue;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gmtModify;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getAttributeName() {
        return attributeName;
    }

    public void setAttributeName(String attributeName) {
        this.attributeName = attributeName;
    }

    public String getAttributeValue() {
        return attributeValue;
    }

    public void setAttributeValue(String attributeValue) {
        this.attributeValue = attributeValue;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    @Override
    public String toString() {
        return "ServiceAttr{" +
                "id=" + id +
                ", serviceId=" + serviceId +
                ", attributeName='" + attributeName + '\'' +
                ", attributeValue='" + attributeValue + '\'' +
                ", gmtCreat=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                '}';
    }
}
